package com.yanyu.space.sys.bean.vo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * @author yanyu
 */
@Data
public class UserAddVo {
    @ApiModelProperty(value = "登录名")
    @NotEmpty(message = "{NotEmpty}")
    private String userName;

    @ApiModelProperty(value = "密码")
    @NotEmpty(message = "{NotEmpty}")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "真实姓名")
    @NotEmpty(message = "{NotEmpty}")
    private String realName;

    @ApiModelProperty(value = "性别，数据字典")
    private String sex;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "email地址")
    private String email;

    @ApiModelProperty(value = "是否是超级管理员用户；0：不是；1：是")
    private Integer sysFlag;

    @ApiModelProperty(value = "启用状态, 1：启用；0：禁用")
    private Integer enabled;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "岗位")
    private List<Long> postIds;

    @ApiModelProperty(value = "角色")
    private List<Long> roleIds;
}
